Package-level declarations

Types

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
value class NotBlankString constructor(val value: String) : Comparable<NotBlankString>

Represents strings containing at least 1 character, excluding whitespaces.

Functions

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
fun String.toNotBlankString(): NotBlankString

Returns this value as a not blank string, or throws an IllegalArgumentException if this value is blank.

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
fun String.toNotBlankStringOrNull(): NotBlankString?

Returns this value as a not blank string, or returns null if this value is blank.